<template>
  <div id="app">
    <router-view/>
    <van-overlay :show="show" @click="show = false" class-name="my-overlay">
      <div class="height100 flex-center blod fz-16" @click.stop>
        项目验收中
      </div>
    </van-overlay>
  </div>
</template>

<script>
export default {
  data () {
    return {
      show: false
    }
  },
  created () {
    this.$home.acceptanceCheck().then(res => {
      console.log(res)
      if (res.data.webstate === 1) {
        this.show = true
        setTimeout(() => {
          this.show = false
        }, 5000)
      }
    })
  }
}
</script>

<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  height: 100%;
  font-size: 14px;
}
* {
  margin: 0;
  padding: 0;
}
div {
  box-sizing: border-box;
}
.my-overlay {
  background-color: rgba(255, 255, 255, 80%) !important;
  z-index: 20 !important;
}
</style>
